import Vue from 'vue';
import App from './App.vue';
import VueRouter from 'vue-router';
import Todo from "./pages/Todo";

Vue.use(VueRouter);

const routes = [
    {path: "/todo", component: Todo, name: "Todo"},
    {path: "*", redirect: {name: "Todo"}},
];

const router = new VueRouter({
    routes
})
export default new Vue({
    el: "#app",
    router,
    render: h => h(App),
})
